package com.tjbklx1.pattern.builder.demo2;

import java.util.ArrayList;

public class TestApp {
	
	public static void main(String[] args) {
		CarBuilder builder = new BenzBuilder();
		ArrayList<String> sequence = new ArrayList<String>();
		sequence.add("engineBoom");
		sequence.add("alarm");
		sequence.add("start");
		sequence.add("alart");
		sequence.add("engineBoom");
		sequence.add("stop");
		builder.setSequence(sequence);
		CarModel benz = builder.getCarModel();
		benz.run();
		
		System.out.println("#########################");
		
		CarBuilder builder2 = new BMWBuilder();
		ArrayList<String> sequence2 = new ArrayList<String>();
		sequence2.add("engineBoom");
		sequence2.add("alarm");
		sequence2.add("start");
		sequence2.add("alart");
		sequence2.add("engineBoom");
		sequence2.add("stop");
		builder2.setSequence(sequence2);
		CarModel bmw = builder2.getCarModel();
		bmw.run();
		
	}
}
